home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’97 / Warrior’s Progress / source code / Source / Libraries / Attributes / HasFace.h < prev    next >
Encoding:
Text File  |  1997-06-28  |  347 b   |  28 lines  |  [TEXT/CWIE]

  1. // HasFace.h
  2.  
  3. #ifndef HasFace_h
  4. #define HasFace_h
  5.  
  6. #ifndef Face_h
  7. #include "Face.h"
  8. #endif
  9.  
  10. class HasFace
  11.   {
  12.     private:
  13.         ::Face face;
  14.         
  15.     protected:
  16.         virtual void FaceChanged() = 0;
  17.         
  18.     public:
  19.         HasFace( Face theFace )
  20.           : face( theFace )
  21.           {}
  22.         
  23.         const ::Face& Face() const        { return face; }
  24.         void SetFace( const ::Face& );
  25.   };
  26.  
  27. #endif
  28.